package com.laicunba.service;

import com.laicunba.pojo.SharedPacketDO;
import com.laicunba.pojo.SharedPacketItemDO;

public interface SharedPacketService extends BaseService {

	public static final String EXTRACT_TYPE_RANDOM = "RANDOM";
	public static final String EXTRACT_TYPE_AVERAGE = "AVG";

	/**
	 * 提取一个红包
	 * 
	 * @param packetId
	 * @param mobile
	 * @return
	 */
	SharedPacketItemDO extract(String packetId, String mobile);

	boolean doShare(SharedPacketDO sharedPacketDO);

	boolean make(SharedPacketItemDO sharedPacketItemDO);

	void make(String mobile);
}
